cmake_minimum_required(VERSION 3.26)   # 指定最低 CMake 版本

project(new-year2025 VERSION 0.0.1)          # 定义项目名称和版本

# 设置 C++ 标准为 C++11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lcppcms")



#add_definitions("-Wall -lcppcms")
# 添加源文件
add_library(sp src/split.cpp)        # 创建一个库目标 MyLib
add_library(Lib src/filestream.cpp)        # 创建一个库目标 MyLib
add_executable(Executable src/main.cpp)  # 创建一个可执行文件目标 MyExecutable


add_executable(Exec src/time.cpp) 

add_executable(mill src/mill.cpp)

target_link_options(Executable PRIVATE -Wall -lcppcms)
# 链接库到可执行文件
target_link_libraries(Executable Lib)
target_link_libraries(Exec Lib sp)
